home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Xi / XChangeKeyboardDevice.z / XChangeKeyboardDevice
Encoding:
Text File  |  1998-10-30  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXCCCChhhhaaaannnnggggeeeeKKKKeeeeyyyybbbbooooaaaarrrrddddDDDDeeeevvvviiiicccceeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXCCCChhhhaaaannnnggggeeeeKKKKeeeeyyyybbbbooooaaaarrrrddddDDDDeeeevvvviiiicccceeee((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XChangeKeyboardDevice - change which device is used as the X
  10.           keyboard
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           Status XChangeKeyboardDevice(_d_i_s_p_l_a_y, _d_e_v_i_c_e)
  14.                 Display *_d_i_s_p_l_a_y;
  15.                 XDevice *_d_e_v_i_c_e;
  16.  
  17.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  18.           _d_i_s_p_l_a_y     Specifies the connection to the X server.
  19.  
  20.           _d_e_v_i_c_e      Specifies the device to be used as the X
  21.                       keyboard.
  22.  
  23.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.           The _X_C_h_a_n_g_e_K_e_y_b_o_a_r_d_D_e_v_i_c_e request causes the server to use
  25.           the specified device as the X keyboard.  The device must
  26.           have been previously opened by the requesting client via
  27.           _X_O_p_e_n_D_e_v_i_c_e or a _B_a_d_D_e_v_i_c_e error will result.  The device
  28.           must support input class _K_e_y_s, or a _B_a_d_M_a_t_c_h error will
  29.           result.  If the server implementation does not support using
  30.           the requested device as the X keyboard, a _B_a_d_D_e_v_i_c_e error
  31.           will result.
  32.  
  33.           If the specified device is grabbed by another client,
  34.           _A_l_r_e_a_d_y_G_r_a_b_b_e_d is returned.  If the specified device is
  35.           frozen by a grab on another device, _G_r_a_b_F_r_o_z_e_n is returned.
  36.           If the request is successful, _S_u_c_c_e_s_s is returned.
  37.  
  38.           If the request succeeds, a _C_h_a_n_g_e_D_e_v_i_c_e_N_o_t_i_f_y event is sent
  39.           to all clients that have selected that event.  A
  40.           _M_a_p_p_i_n_g_N_o_t_i_f_y event with request = _M_a_p_p_i_n_g_K_e_y_b_o_a_r_d is sent
  41.           to all clients.  The specified device becomes the X keyboard
  42.           and the old X keyboard becomes accessible through the input
  43.           extension protocol requests.
  44.  
  45.           _X_C_h_a_n_g_e_K_e_y_b_o_a_r_d_D_e_v_i_c_e can generate a _B_a_d_D_e_v_i_c_e or a _B_a_d_M_a_t_c_h
  46.           error.
  47.  
  48.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  49.           _B_a_d_D_e_v_i_c_e   An invalid device was specified.  The specified
  50.                       device does not exist, has not been opened by
  51.                       this client via _X_O_p_e_n_I_n_p_u_t_D_e_v_i_c_e,  or is already
  52.                       one of the core X device (pointer or keyboard).
  53.                       This error may also occur if the server
  54.                       implementation does not support using the
  55.                       specified device as the X keyboard.
  56.  
  57.           _B_a_d_M_a_t_c_h    This error may occur if an _X_C_h_a_n_g_e_K_e_y_b_o_a_r_d_D_e_v_i_c_e
  58.                       request was made specifying a device that has no
  59.                       keys.
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXCCCChhhhaaaannnnggggeeeeKKKKeeeeyyyybbbbooooaaaarrrrddddDDDDeeeevvvviiiicccceeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXCCCChhhhaaaannnnggggeeeeKKKKeeeeyyyybbbbooooaaaarrrrddddDDDDeeeevvvviiiicccceeee((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.           XChangePointerDevice
  76.           _P_r_o_g_r_a_m_m_i_n_g _W_i_t_h _X_l_i_b
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.